def searchOpp(opp_jt_key,jpg,pg):
    import time
    """
    根据商机集团编码在我管控的商机页面查询商机，并进入详情页
    :param opp_jt_key: 商机集团编码
    :return:
    """
    # 点击我管控的商机
    jpg.click("./img/chuance_data_check/guankong_tab.png", 0.7)
    time.sleep(1)
    print(1)
    # 点击重置按钮
    jpg.click("./img/chuance_data_check/chongzhi.png", 0.7)
    time.sleep(1)
    print(2)
    # 点击商机编码输入框
    jpg.click("./img/chuance_data_check/input_opp_jt_key.png", 0.7)
    time.sleep(1)
    print(3)
    # 输入商机编码
    pg.typewrite(opp_jt_key)
    time.sleep(1)
    print(opp_jt_key)
    # 点击查询按钮
    jpg.click("./img/chuance_data_check/btn_search.png", 0.7)
    time.sleep(2)
    # 点击商机进入商机页面
    jpg.click(258, 456)
    jpg.click(303, 444)
    jpg.click(235, 445)
    time.sleep(2)
    jpg.click(1271,774)
    jpg.click(1275,805)

def ywjgCheck(opp_jt_key,jpg,pg):
    import time
    """
    进入业务解构并检查各类信息合同基础信息
    :return:
    """
    # 保存截图到文件
    name = opp_jt_key + "Y.png"
    pg.screenshot(name)
    # 进入业务解构
    jpg.click(2085,400)
    time.sleep(1)
    # 进入业务解构信息
    jpg.click("./img/chuance_data_check/ywjg.png", 0.7)
    time.sleep(1)
    # 点击我知道了
    jpg.click(1320, 1345)
    # 进入合同信息
    jpg.click("./img/chuance_data_check/hetong.png", 0.7)
    time.sleep(1)
    # 保存截图2
    name = opp_jt_key + "E.png"
    pg.screenshot(name)